import type { DefineComponent } from "vue"

export interface TabItemState {
  title: string
  children: TabChildrenState[]
}

export interface TabChildrenState {
  title: string
  images: {
    url: string
  }[]
}


export interface CompListState {
  beforeCreate?: (isCurt?: any) => Promise<any>
  id?: number
  isCurt?: Boolean
  component: any,
  text: string,
  btnConfig: {
    type: 'primary' | 'default' | 'success' | 'error',
    style?: {
      [propsName: string]: any
    }
  },
  css: {
    [propsName: string]: any
    width: number,
    height: number,
    backgroundColor: string,
  }
}